package com.suep.system.service.impl;

import com.suep.system.domain.Role;
import com.suep.system.mapper.RoleMapper;
import com.suep.system.service.IRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RoleServiceImpl implements IRoleService {
    @Autowired
    RoleMapper roleMapper;
    @Override
    public Role selectRoleByUserId(Long userId) {
        return roleMapper.selectRoleByUserId(userId);
    }
    @Override
    public Role selectRoleByName(String name) {
        return roleMapper.selectRoleByName(name);
    }
}
